﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PicturePortfolio.Silverlight
{
    public class ThumbNailItemsControl:ItemsControl
    {
        //ContentPresenter _contentPresenter = null;
        protected override DependencyObject GetContainerForItemOverride()
        {
            ContentPresenter _contentPresenter = null;
            //if (_contentPresenter == null)
                _contentPresenter = new ContentPresenter();
            _contentPresenter.HorizontalAlignment = HorizontalAlignment.Center;
            _contentPresenter.VerticalAlignment = VerticalAlignment.Center;
            return _contentPresenter;
        }
        protected override bool IsItemItsOwnContainerOverride(object item)
        {
            return false;
        }
    }
}
